#include "tesQthread.h"
#include "QDebug"

tesQthread::tesQthread(QWidget *parent)
    : QWidget(parent)
{
    ui.setupUi(this);

    //m_pThread = new CThread;
    //m_pThread->stratThread();

    //connect(this, &tesQthread::sig_update_progress, m_pThread, &CThread::run);
    //connect(this, &tesQthread::addenqueu, m_pThread, &CThread::enqueue);

    //emit sig_update_progress();
    //for(int i=0;i<100;i++)
    //{

    //    m_pThread->enqueue(QString::number(i));
    //  //  emit addenqueu(QString::number(i));
    //    qDebug() << "1111:"<< QThread::currentThreadId();
    //}

    


    myQThread tqwd;


}

tesQthread::~tesQthread()
{


}


void tesQthread::on_pushButton_clicked() {

    pThread.start(500);
}

void tesQthread::on_pushButton_2_clicked() {

    pThread.stop();
}